package com.summba.analysis;

import java.io.BufferedReader;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

import com.summba.common.Common;

public class GatherAllFavourite {
	
	public GatherAllFavourite(String File){
		BufferedReader bf = Common.getFileInfo(File);
		List<String> ls = Common.bufferedReaderToList(bf);
		Set<String> se = new HashSet<String>();
		se.addAll(ls);
		for (Iterator<String> iterator = se.iterator(); iterator.hasNext();) {
			String string = (String) iterator.next();
			System.out.println("string : "+string);
		}
		System.out.println("Size:"+se.size());
	}

}
